<template>
  <div id="app">
    <div class="nav">
      <router-link v-for="(route, index) in baseRoutesList" :key="index" :to="route.path">
      -->{{ route.name }}
      </router-link>
    </div>
    <router-view />
  </div>
</template>

<script>
import router from './router'

export default {
  name: 'App',
  data () {
    return {
      baseRoutesList: [],
    }
  },
  mounted () {
    this.baseRoutesList = router.options.routes;
  },
}
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

.nav {

  a {
    text-decoration: none;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
